/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package operators;

/**
 *
 * @author marcin
 */
import java.util.List;
import java.util.Map;
import javax.swing.JFrame;
import javax.swing.JOptionPane;

/**
 *
 * @author marcin
 */
public class DefaultOperator extends OperatorImpl {

    public DefaultOperator() {
    }

    @Override
    public Double calculateHappiness(Map<String,Double> map) {
        Double max = 0.0;
        for (Double d : map.values()) {
            if (d > max) {
                max = d;
            }
        }
        System.out.println("Calculating happiness with default operator...");
        return max;
    }
    @Override
    public void showDialog(JFrame frame, List<String> inputs) {
     JOptionPane.showMessageDialog(null, "No extra parameters needed.\n");
    }
}
